/*************************************************************************
> File Name: one_way_linked_list.h
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-24 19:01:57
> Description: 单向链表
************************************************************************/
#ifndef ONE_WAY_LINKED_LIST_H
#define ONE_WAY_LINKED_LIST_H

typedef struct DATA
{
	int value;
} Data;

typedef struct NODE
{
	Data data; // 模块化处理
	struct NODE *next;
} Node;

static Node *createNode();
Node *createHead();
int getNodeCount(Node *head);
Node *insertTailNode(Node *head, int item);
Node *insertMidNode(Node *head, int location, int item);
Node *insertHeadNode(Node *head, int item);
Node *removeNode(Node *head, int location);
Node *freeLinkedList(Node *head);
void printList(Node *head);

#endif // ONE_WAY_LINKED_LIST_H
